/*
  Copyright 2009 Smart Enterprise Solution Corp.
  Email: contact@ses.vn - Website: http://www.ses.vn
  KimNgan Project.
*/
using System;
using System.Data;
using System.Configuration;
using System.Collections;

using SES.CMS.DAL;
using SES.CMS.DO;
/// <summary>
/// Summary description for cmsPropertiesBL
/// </summary>
namespace SES.CMS.BL 
{
    public class cmsPropertiesBL 
    {
    	#region Private Variables
		cmsPropertiesDAL objcmsPropertiesDAL;
		#endregion
		
        #region Public Constructors
        public cmsPropertiesBL()
        {
            //
            // TODO: Add constructor logic here
            //
            objcmsPropertiesDAL=new cmsPropertiesDAL();
        }
        #endregion       

        #region Public Methods
        public int Insert(cmsPropertiesDO objcmsPropertiesDO)
        {
            return objcmsPropertiesDAL.Insert(objcmsPropertiesDO);
        }

        public int Update(cmsPropertiesDO objcmsPropertiesDO)
        {
             return objcmsPropertiesDAL.Update(objcmsPropertiesDO);

        }

        public int Delete(cmsPropertiesDO objcmsPropertiesDO)
        {
             return objcmsPropertiesDAL.Delete(objcmsPropertiesDO);

        }

         public int DeleteAll()
        {
             return objcmsPropertiesDAL.DeleteAll();
        }

        public cmsPropertiesDO Select(cmsPropertiesDO objcmsPropertiesDO)
        {
            return objcmsPropertiesDAL.Select(objcmsPropertiesDO);
        }

        public ArrayList SelectAll1( )
        {
         return objcmsPropertiesDAL.SelectAll1();
        }
        
        public DataTable SelectAll( )
        {
         return objcmsPropertiesDAL.SelectAll();
        }

        public DataTable SelectByProductCategory(int pid)
        {
            return objcmsPropertiesDAL.SelectByProductCategory(pid);
        }
     
#endregion          
    
    
        public cmsPropertiesDO SelectbyCode(string code)
        {
            return objcmsPropertiesDAL.SelectByCode(code);
        }
    }

}
